package com.yekaile.carsystem.service;

import com.github.pagehelper.PageInfo;
import com.yekaile.carsystem.controller.vo.RoleAuthorityVO;
import com.yekaile.carsystem.controller.vo.RoleVO;
import com.yekaile.carsystem.entity.Role;
import com.yekaile.carsystem.entity.RoleAuthority;

import java.util.List;

/**
 * @author yekaile
 */
public interface RoleService {

    int addRole(RoleAuthorityVO roleAuthorityVO);

    int deleteRole(Integer roleId);

    PageInfo<RoleVO> getAllRoles(Integer pageNum, Integer pageSize);

    int updateRole(RoleAuthorityVO roleAuthorityVO);

    RoleVO getRole(Integer roleId);


    List<Role>getOnlyAllRoles();

}
